/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package it.polimi.leo.jg;

import it.polimi.leo.mw.IMiddleWareMsgHandler;
import it.polimi.leo.mw.IMiddlewareMessage;
import org.jgroups.Message;
import org.jgroups.ReceiverAdapter;

/**
 *
 * @author Lev
 */
public abstract class JGMsgHandler extends ReceiverAdapter
        implements IMiddleWareMsgHandler {

    @Override
    public void receive(Message msg) {
       this.receive((JGMessage) msg.getObject());
    }
    
    public Object receive(IMiddlewareMessage msg) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
